<%@include file="include/head.jsp" %>
<wml>
    <card title="${timeline_name} - Pechapai" id="main">
        Your account is <c:out escapeXml="true" value="${user}" />. API: ${rateLimitStatus.remainingHits}/${rateLimitStatus.hourlyLimit}
        <strong><c:out escapeXml="true" value="${message}" /></strong>
        <c:if test="${user_info!=null}">
            <p>
                Screen name: <c:out escapeXml="true" value="${user_info.screenName}" /><br/>
                User name:  <c:out escapeXml="true" value="${user_info.name}" /><br/>
                Fo/Fe/Te: ${user_info.friendsCount}/${user_info.followersCount}/${user_info.statusesCount}<br/>
                Bio:  <c:out escapeXml="true" value="${user_info.description}" />
            </p>
        </c:if>
        <c:forEach items="${tweets}" var="tweet">
            <p>
                <a href="<c:out value="${BASE_URL}/timeline.wml?timeline=user&name=${tweet.user.screenName}" escapeXml="true"/>">${tweet.user.screenName}</a>: <c:out value="${tweet.text}" escapeXml="true"/> <br/>
                <a href="<c:out value="${BASE_URL}/tweet.wml?id=${tweet.id}" escapeXml="true"/>">${tweet.createdAt}</a> via ${fn:replace(tweet.source,'&','&amp;')}
                <a href="<c:out value="${BASE_URL}/tweet.wml?action=reply&id=${tweet.id}&name=${tweet.user.screenName}" escapeXml="true"/>">@</a>
                <a href="<c:out value="${BASE_URL}/tweet.wml?action=retweet&id=${tweet.id}" escapeXml="true"/>">RT</a>
                <c:if test="${tweet.user.screenName==user}"><a href="<c:out value="${BASE_URL}/tweet.wml?action=del&id=${tweet.id}" escapeXml="true"/>">DEL</a></c:if>
                <c:if test="${tweet.user.screenName!=user}"><a href="<c:out value="${BASE_URL}/dm.wml?action=new&user=${tweet.user.screenName}" escapeXml="true"/>">DM</a></c:if>
            </p>
        </c:forEach>
        <do name="prev_page" type="unknown" label="Prev Page">
            <go href="<c:out value="${timeline_url}" escapeXml="true"/>" method="get">
                <postfield name="page" value="${page!=1?page-1:1}"/>
            </go>
        </do>
        <do name="next_page" type="unknown" label="Next Page">
            <go href="<c:out value="${timeline_url}" escapeXml="true"/>" method="get">
                <postfield name="page" value="${page+1}"/>
            </go>
        </do>
        <do type="accept" label="Update Status">
            <go href="#update"/>
        </do>
        <do type="option" label="Menu">
            <go href="#menu"/>
        </do>
    </card>
    <%@include file="include/update.jsp" %>
    <%@include file="include/menu.jsp" %>
</wml>
